package edu.tongji.jiaowu.service.impl;

import java.util.List;
import java.util.Map;

import com.tongji.quickCRUDQ.service.impl.BaseManagerImpl;

import edu.tongji.jiaowu.dao.EvtStudentDao;
import edu.tongji.jiaowu.dao.EvtStudentResultDao;
import edu.tongji.jiaowu.service.EvtStudentResultManager;
import com.tongji.quickCRUDQ.model.CommonBean;

public class EvtStudentResultManagerImpl extends BaseManagerImpl implements EvtStudentResultManager {
	private EvtStudentResultDao evtStudentResultDao;
	private EvtStudentDao evtStudentDao;

	public CommonBean createEvtStudentResult() {
		return evtStudentResultDao.createEvtStudentResult();
	}

	/*
	 public CommonBean findEvtStudentResults(String refid) {
	 return evtStudentResultDao.findEvtStudentResults(refid);
	 }
	 */
	public CommonBean findEvtStudentResultById(String id) {
		return evtStudentResultDao.findEvtStudentResultById(id);
	}

	public CommonBean findAllEvtStudentResults() {
		return evtStudentResultDao.findAllEvtStudentResults();
	}

	public void insertEvtStudentResult(CommonBean evtStudentResultBean) {
		evtStudentResultDao.insertEvtStudentResult(evtStudentResultBean);
	}

	public void updateEvtStudentResult(CommonBean evtStudentResultBean) {
		evtStudentResultDao.updateEvtStudentResult(evtStudentResultBean);
	}

	public void studentEvTeaching(String refid, String note, Map map) {
		evtStudentDao.finish(refid,note);
		evtStudentResultDao.finish(map, refid);
	}

	public EvtStudentResultDao getEvtStudentResultDao() {
		return evtStudentResultDao;
	}

	public void setEvtStudentResultDao(EvtStudentResultDao evtStudentResultDao) {
		this.evtStudentResultDao = evtStudentResultDao;
	}

	public EvtStudentDao getEvtStudentDao() {
		return evtStudentDao;
	}

	public void setEvtStudentDao(EvtStudentDao evtStudentDao) {
		this.evtStudentDao = evtStudentDao;
	}

}
